package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.target.BpTargetExamineRecord;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author ZhangDong
 * @Date 2020/8/6 14:12
 */
public interface BpTargetExamineRecordDao extends JpaRepository<BpTargetExamineRecord, Long> {

    List<BpTargetExamineRecord> findByDutyIdAndStatus(Long dutyId, String status);

    int countByDutyIdAndStatus(Long dutyId, String status);
}
